package com.ruoyi.djb.config;

/**
 * 通用常量信息
 * 
 * @author ruoyi
 */
public class Constants
{
    public static final int ADMIN_TYPE_ADMIN=3;
    public static final int ADMIN_TYPE_GATE=1;//门卫
    public static final int ADMIN_TYPE_WUYE=2;//管家
    public static final int ADMIN_TYPE_NONE=0;
    public static final int ADMIN_TYPE_MANAGER_WUYE=4;//服务主管
    public static final int ADMIN_TYPE_MANAGER_GATE=5;//秩序主管

    public static final int SYS_YES=1;/*是、开、已放行*/
    public static final int SYS_NO=0;/*否、关、待放行*/
    public static final int SYS_EXAM=2;/*登记待审核*/

    public static final int SYS_STATUS_REJECT=2;/*拒绝*/
    public static final int SYS_STATUS_TODO=0;/*待通过*/
    public static final int SYS_STATUS_PASS=1;/*通过*/
    public static final int SYS_STATUS_EXPIRE=10;/*过期*/
    public static final int SYS_STATUS_WASTE=11;/*作废*/
    public static final int SYS_STATUS_REBUT=5;/*驳回*/
    public static final int SYS_STATUS_OUT=20;/*出场*/
    public static final int SYS_STATUS_WRONG=21;/*纠错*/

    public static final String SYS_STATUS_DELETE="districtHasDelete";/*删除*/
    public static final String SYS_STATUS_DISSOLUTION="districtHasDissolution";/*解散*/

    public static final int USER_TYPE_PERSON=2;/*人*/
    public static final int USER_TYPE_CAR=1;/*车*/

    public static final int CREATE_TYPE_VISITOR=1;/*访客*/
    public static final int CREATE_TYPE_ADMIN=2;/*物业*/
    public static final int CREATE_TYPE_GATE=3;/*门卫*/
    public static final int CREATE_TYPE_USER=4;/*业主*/


    public static final int BUILDING_TYPE_BUILD=1;/*楼座*/
    public static final int BUILDING_TYPE_DEPARTMENT=2;/*部门*/
    public static final int BUILDING_TYPE_COMPANY=3;/*公司*/

    public static final String TYPE_TODAY_ONE="本日单次";/*业主*/
    public static final String TYPE_TODAY_WHOLE="本日全天";/*业主*/
    public static final String TYPE_TOMORROW_ONE="明日单次";/*业主*/
    public static final String TYPE_TOMORROW_WHOLE="明日全天";/*业主*/
    public static final String TYPE_THREE_DAY="连续三天";/*业主*/
    public static final String TYPE_TWO_DAY="连续两天";/*业主*/


    public static final int REG_TYPE_SCAN=1;/*业主*/
    public static final int REG_TYPE_REMOTE=2;/*业主*/
    public static final int REG_TYPE_INVITE=3;/*业主*/

    public static final int REG_ADD=5;

    public static final Long Period=30l;

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 系统用户授权缓存
     */
    public static final String SYS_AUTH_CACHE = "sys-authCache";

    /**
     * 参数管理 cache name
     */
    public static final String SYS_CONFIG_CACHE = "sys-config";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache name
     */
    public static final String SYS_DICT_CACHE = "sys-dict";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi://";

    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap://";
}
